package com.home766.entity;

import net.biz.entity.BaseEntity;
import net.biz.entity.Brand;
import net.biz.entity.ProductCategory;

import javax.persistence.*;

/**
 * 门店下单奖励计算提成点-Entity
 */

@Entity
@Table(name="766_order_reward")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "766_order_reward_sequence")
public class OrderReward extends BaseEntity {

	private static final long serialVersionUID = -4156514147996323811L;
	
	/**类型：单品还是方案*/
	private Integer type;
	/**单品分类*/
	private ProductCategory productCategory;
	/**方案分类*/
	private Dictionary schemeCategory;
	/**品牌*/
	private Brand brand;
	/**提成百分点*/
	private Double point;
	/**创建人*/
	private String createPerson;
	
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	public ProductCategory getProductCategory() {
		return productCategory;
	}
	public void setProductCategory(ProductCategory productCategory) {
		this.productCategory = productCategory;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	public Dictionary getSchemeCategory() {
		return schemeCategory;
	}
	public void setSchemeCategory(Dictionary schemeCategory) {
		this.schemeCategory = schemeCategory;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	public Brand getBrand() {
		return brand;
	}
	public void setBrand(Brand brand) {
		this.brand = brand;
	}
	public Double getPoint() {
		return point;
	}
	public void setPoint(Double point) {
		this.point = point;
	}
	
	public String getCreatePerson() {
		return createPerson;
	}
	public void setCreatePerson(String createPerson) {
		this.createPerson = createPerson;
	}
	
}
